package ym.ecrm.core.domain.marketManagement;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import ym.ecrm.core.domain.base.BaseEntity;
import ym.ecrm.core.domain.systemManagement.User;

/**
 * 广告类
 * @author fage
 *version 1.0
 */
@Entity
@Table(name = "t_advertisement")
public class Advertisement extends BaseEntity{

	/**
	 * advertisementCode 广告编号
	 */
	private String advertisementCode;
	/**
	 * theme 主题
	 */
	private String theme;
	/**
	 * content 内容
	 */
	private String content;
	/**
	 * midea 媒体
	 */
	private String midea;
	/**
	 * mideaType 媒体类型
	 */
	private String mideaType;
	/**
	 * putTime 投放时间
	 */
	private String putTime;
	/**
	 * cost 费用
	 */
	private String cost;
	/**
	 * agencyCompany 代理公司
	 */
	private String agencyCompany;
	/**
	 * contactPerson 接洽人
	 */
	private String contactPerson;
	/**
	 * contact 联系方式
	 */
	private String contact;
	
	/**
	 * state 状态
	 */
	private String state;
	/**
	 * user 负责人
	 */
	@ManyToOne(targetEntity = User.class
			,cascade = {CascadeType.PERSIST,CascadeType.MERGE})
	@JoinColumn(name="userId")
	private User user;
	
	public String getAdvertisementCode() {
		return advertisementCode;
	}
	public void setAdvertisementCode(String advertisementCode) {
		this.advertisementCode = advertisementCode;
	}
	public String getTheme() {
		return theme;
	}
	public void setTheme(String theme) {
		this.theme = theme;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getMidea() {
		return midea;
	}
	public void setMidea(String midea) {
		this.midea = midea;
	}
	public String getMideaType() {
		return mideaType;
	}
	public void setMideaType(String mideaType) {
		this.mideaType = mideaType;
	}
	public String getPutTime() {
		return putTime;
	}
	public void setPutTime(String putTime) {
		this.putTime = putTime;
	}
	public String getCost() {
		return cost;
	}
	public void setCost(String cost) {
		this.cost = cost;
	}
	public String getAgencyCompany() {
		return agencyCompany;
	}
	public void setAgencyCompany(String agencyCompany) {
		this.agencyCompany = agencyCompany;
	}
	public String getContactPerson() {
		return contactPerson;
	}
	public void setContactPerson(String contactPerson) {
		this.contactPerson = contactPerson;
	}
	public String getContact() {
		return contact;
	}
	public void setContact(String contact) {
		contact = contact;
	}
	public String getState() {
		return state;
	}
	public void setState(String state) {
		this.state = state;
	}
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	
}
